package de.hska.algo.labor2010.strecken;
/**
 * 2-dimensional Point, defined by value for x- and y-axis
 * @author  Daniela Brenner
 * @version  1.0
 */
public class Point {
	
	private double x;
	
	private double y;

	public Point(double x, double y) {
		this.x = x;
		this.y = y;
	}
	public Point(Point a) {
	
			this.x = a.getX();
			this.y = a.getY();
		}
	/**
	 * print value of x- and y-axis
	 * @return string contains x= ' value of x', y = 'value of y'
	 */
	public String toString() {
		return new String("(" + x + " , "+ y + ")");
	}
	
	/**
	 * @return value of x-coordinate
	
	 */
	public double getX() {
		return x;
	}

	/**
	 * set value of x-coordinate
	 * @param  x 
	
	 */
	public void setX(double x) {
		this.x = x;
	}

	/**
	 * @return value of y-coordinate
	
	 */
	public double getY() {
		return y;
	}

	/**
	 * set value of y-coordinate
	 * @param  y
	
	 */
	public void setY(double y) {
		this.y = y;
	}
	

}
